import request from '@/utils/request'
//获取用户列表
export function role_list(page,limit) {
  return request({
    url: '/market/system/role_list',
    method: 'post',
    data:{
      page,
      limit,
    }
  })
}
//删除角色
export function role_del(id) {
  return request({
    url: '/market/system/role_del',
    method: 'post',
    data:{
     id
    }
  })
}
//添加角色
export function role_add(role_name,menus) {
  return request({
    url: '/market/system/role_add',
    method: 'post',
    data:{
      role_name,
      menus
    }
  })
}
//编辑用户
export function role_edit(dat) {
  return request({
    url: '/market/system/role_edit',
    method: 'post',
    data:{
     id:dat.id,
     role_name:dat.role_name,
     menus:dat.menus,
    }
  })
}
//菜单
export function menus_list(dat) {
  return request({
    url: '/market/system/menus_list',
    method: 'post',
    data:{

    }
  })
}
